package com.study.service.impl.hx;

import com.study.service.api.hx.FXService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FXServiceImpl implements FXService {

    @Override
    public void loop1(List<?> list) {
        for(int i = 0; i < list.size(); i++){
            System.out.println(list.get(i));
        }
    }

    @Deprecated
    @Override
    public void loop2(List<? extends Number> list) {
        for(int i = 0; i < list.size(); i++){
            System.out.println(list.get(i));
        }
    }

    @Override
    public void loop3(List<? super Integer> list) {
        for(int i = 0; i < list.size(); i++){
            System.out.println(list.get(i));
        }
    }
}
